package com.ihrm.system.client;

import com.ihrm.common.entity.Result;
import com.ihrm.domain.company.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ihrm-company")
public interface DepartmentFeignClient {
    @GetMapping(value = "/company/department/{id}/")
    Result findById(@PathVariable String id);


    @GetMapping(value = "/company/department/condition")
    Department findByCondition(@RequestParam String code);
}
